/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.entitysubsystem.exceptions.event;

import assisisw.smartcal.entitysubsystem.Event;

/**
 *
 * @author Francesco
 */
public abstract class EventException extends Exception
{
    
    // Instance Fields
    
    /***/
    private final Event event ;

    // Instance Methods
    
    /**
     * @param event
     * @throws IllegalArgumentException
     */
    protected EventException ( Event event ) 
    {
        super () ;
        if ( event != null )
            this.event = event ;
        else
            throw new IllegalArgumentException () ;
    }
    
    /**
     * @return
     */
    public Event getEvent () 
    {
        return event ;
    }
    
}
